package com.siqi.hr.system.common.chan;

import com.siqi.hr.system.common.sql.Condition;
import com.siqi.hr.system.common.utils.CollectionUtils;

import java.util.ArrayList;


public class ConditionChan extends ArrayList<Condition> implements SqlChan {
	private static final long serialVersionUID = -3574001815551692469L;

	public StringBuilder toSqlString() {
		return CollectionUtils.join(this, " and ");
	}

	public static enum ConditionJionType {
		and, or;
	}
}
